package com.meiwenhui.sishuwujing.entities;

import android.content.Context;

import com.orm.androrm.Model;
import com.orm.androrm.QuerySet;
import com.orm.androrm.field.CharField;
import com.orm.androrm.field.IntegerField;

public class Catalogue extends Model {

	protected IntegerField catalogueId;
	protected CharField name;
	protected CharField alias;
	protected IntegerField ordinal;

	public static final QuerySet<Catalogue> objects(Context context) {
		return objects(context, Catalogue.class);
	}

	public Catalogue() {
		super();
		this.catalogueId = new IntegerField();
		this.name = new CharField(255);
		this.alias = new CharField(255);
		this.ordinal = new IntegerField();
	}

	public Integer getCatalogueId() {
		return catalogueId.get();
	}

	public void setCatalogueId(Integer catalogueId) {
		this.catalogueId.set(catalogueId);
	}

	public String getName() {
		return name.get();
	}

	public void setName(String name) {
		this.name.set(name);
	}

	public String getAlias() {
		return alias.get();
	}

	public void setAlias(String alias) {
		this.alias.set(alias);
	}

	public Integer getOrdinal() {
		return ordinal.get();
	}

	public void setOrdinal(Integer ordinal) {
		this.ordinal.set(ordinal);
	}

}
